home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 010a / super25n.zip / INIT.DOC < prev    next >
Text File  |  1993-01-05  |  4KB  |  108 lines

  1.  
  2.                     ┌───────────────────────────────┐
  3.                     │         SuperLib 2.50         │
  4.                     │    For Clipper S87 and 5.01   │
  5.                     │    -------------------------  │
  6.                     │       copyright 1990          │
  7.                     │      Garry A Prefontaine      │
  8.                     └───────────────────────────────┘
  9.  
  10.  
  11.                              Initialization
  12.                              --------------
  13.  
  14.     INITSUP() is the SuperLib function which initializes global (public)
  15.     variables for color, paths and other things.
  16.  
  17.     The first time INITSUP() is called, it simply initializes the global
  18.     variables expected by SuperLib functions if they are not already present.
  19.     On subsequent calls, INITSUP() does nothing.
  20.  
  21.     The variables are:
  22.  
  23.                                QUERY_EXP
  24.                                ---------
  25.     QUERY_EXP is set to "". This is the global variable used to store the last
  26.     query built with QUERY(), and is accessed by many Super.Lib functions.
  27.  
  28.                                _SUPERPRN
  29.                                ---------
  30.     _SUPERPRN is set to "LPT1". This is the default printer for Super.Lib
  31.     output.
  32.  
  33.                                _CHECKPRN
  34.                                ---------
  35.     _CHECKPRN is initialized to .T. This variable tells P_READY() whether or
  36.     not it should attempt to check the printer status. On a redirected
  37.     printer on a LAN this should be set to .F., as ISPRN() will not work
  38.     reliably.
  39.  
  40.                               _SUPISCOLOR
  41.                               -----------
  42.     INITSUP() will look for a variable called _SUPISCOLOR. If it is present
  43.     and of type "L", its value will be used in place of ISCOLOR(). You may
  44.     want to initialize a public variable _SUPISCOLOR and set it to .f.
  45.     if you have one of those card/monitor combos that fool ISCOLOR().
  46.  
  47.                             COLOR VARIABLES
  48.                          (see also COLORS.DOC)
  49.                           --------------------
  50.  
  51.     C_NORMCOL       -       for normal input/output
  52.     C_NORMMENU      -       for normal 'menu to' operations
  53.     C_POPCOL        -       for popup box colors
  54.     C_POPMENU       -       for popup box menus
  55.     C_FRAME         -       frame string ("┌─┐│┘─└│ ")
  56.     C_SHADATT       -       shadow color attribute (numeric)
  57.     C_SHADPOS       -       shadow position (0,1,3,7,9)
  58.     C_XPLODE        -       logical - explode windows?
  59.  
  60.     The defaults for a color monitor:    The defaults for a mono monitor:
  61.  
  62.     C_NORMCOL  =  'W/B,GR+/R,,,W/N'      C_NORMCOL   =  'W/N,N/W,,,+W/N'
  63.     C_NORMMENU =  'W/B,N/R,,,W/N'        C_NORMMENU  =  'W/N,N/W,,,+W/N'
  64.     C_POPCOL   =  'N/BG,N/W,,,BG+/N'     C_POPCOL    =  'N/W,+W/N,,,W/N'
  65.     C_POPMENU  =  'N/BG,W+/N,,,BG+/N'    C_POPMENU   =  'N/W,W/N,,,+W/N'
  66.     C_FRAME    = "┌─┐│┘─└│ "             C_FRAME     = "┌─┐│┘─└│ "
  67.     C_SHADATT  = 7                       C_SHADATT   = 8
  68.     C_SHADPOS  = 1                       C_SHADPOS   = 1
  69.     C_XPLODE   = .T.                     C_XPLODE    = .T.
  70.  
  71.  
  72.  
  73.                       Advanced INITSUP() settings
  74.                       ---------------------------
  75.  
  76.     System files (used by Super.Lib) all have default
  77.     names which may be overridden. The defaults are
  78.     contained in a set of public variables. They are:
  79.  
  80.         _REPORTS        = "SFREPORT"    (for reports)
  81.         _FORMS          = "FORM"        (for form letters)
  82.         _QUERIES    = "QUERIES"    (for queries)
  83.         _LISTER         = "PLIST"       (for lister)
  84.         _TODODBF    = "TODO"    (for todo list)
  85.         _TODONTX1       = "TODO"        (TODO category INDEX)
  86.         _TODONTX2       = "TODOP"       (TODO priority INDEX)
  87.         _TODONTX3       = "TODOD"       (TODO do by INDEX)
  88.         _HELP        = "HELP"    (for help)
  89.         _SCROLLER    = "SCROLLER"    (for scroller)
  90.         _COLORS         = "COLORS"      (for colors)
  91.  
  92.     to override a system file name, set the variable name
  93.     to a name of your choice BEFORE the first call to
  94.     INITSUP(). Do not use an extension.
  95.  
  96.                                 Examples
  97.                                 --------
  98.  
  99.     * beginning of top level program
  100.     _REPORTS = "C:\AMY\AMYRPT"
  101.     _QUERIES = "C:\AMY\AMYQBE"
  102.     INITSUP()
  103.  
  104.     _SUPERPRN = "LPT2"
  105.     C_NORMCOL = "W/N,+GR/R,,,N/W"
  106.  
  107.  
  108.